const express = require("express");
const path = require("path");
const app = express();

// app.use(express.static(path.join(__dirname, './client')))
app.get("/", (req, res) => {
  res.json({ message: "Welcome to bezkoder application." });
});
app.get("/message", (req, res) => {
  res.json({ message: "message" });
});
const server = app.listen(9000, function () {
  const host = server.address().address;
  const port = server.address().port;

  console.log("服务启动", host, port);
});
